package com.mimosa.common.customer;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mimosa.common.entity.BaseEntity;

@Entity
@Table(name = "T_Customer_Contact")
public class TCustomerContact extends BaseEntity {

	@ManyToOne(cascade = { javax.persistence.CascadeType.REFRESH })
	private TCustomer customer;

	@Column(length = 16, nullable = false)
	private String phone;

	@Column(length = 1024, nullable = false)
	private String email;

	@Column(length = 64, nullable = true)
	private String mobile;
	private String qq;

	@Column(length = 256, nullable = true)
	private String msn;

	public TCustomer getCustomer() {
		return this.customer;
	}

	public void setCustomer(TCustomer customer) {
		this.customer = customer;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getMsn() {
		return this.msn;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}
}